﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using GISCommon.Business;

namespace GISCommon
{
    public partial class RCITS_TOCControl : UserControl
    {
        public RCITS_TOCControl()
        {
            InitializeComponent();
        }

        private ESRI.ArcGIS.Controls.AxMapControl mapControl = null;
        public ESRI.ArcGIS.Controls.AxMapControl MapControl
        {
            get { return mapControl; }
            set { mapControl = value; }
        }

        private Business.TOCControlHelper helper=new TOCControlHelper();
        public void Initial()
        {
            helper.MAPCONTROL = mapControl;
            helper.TOCCONTROL = this;
            helper.Initial();
        }
        public  void Initial(ESRI.ArcGIS.Controls.AxMapControl inMapControl)
        {
            mapControl = inMapControl;
            Initial();
        }
    }
}
